home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / c_count-.0 / c_count- / c_count-7.0 / testing / showdiff.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1990-08-30  |  240 b   |  15 lines

  1. #!/bin/sh
  2. # $Id: showdiff.sh,v 7.0 1990/08/30 07:54:55 ste_cm Rel $
  3. #
  4. # Performs regression-test comparison for 'run_tests.sh'
  5. if test ! -f $2
  6. then
  7.     mv $1 $2
  8. elif ( cmp -s $1 $2 )
  9. then
  10.     echo '**    (ok)'
  11. else
  12.     echo '??    failed:'
  13.     diff $1 $2
  14. fi
  15.